import config from "@/http/config.js"
import http from "@/http/index.js";

export const getList = (params = {}) => {
    return config.getData("/role/getList", params).then(res => {
        return res
    })
}

export const createRole = (params = {}) => {
    return http.post("/role/create", params)
}

export const detail = (params = {}) => {
    return config.getData("/role/detail", params).then(res => {
        return res.data
    })
}

export const updateRole = (params = {}) => {
    return http.post("/role/update", params)
}

export const selectRole = () => {
    return config.getData("/select/selectRole").then(res => {
        return res.data
    })
}